package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/11/4 14:56
 */
@Data
@TableName(value = "LOG",autoResultMap = true)
@Entity(name = "LOG")
@AccEntity(value = "日志", type = EntityType.SERVICE_ENTITY)
public class Log extends DomainBaseEntity<Log> {

    /**
     * 用户id
     */
    @Column()
    private Long userId;

    /**
     * 用户名
     */
    @Column()
    private String userName;

    /**
     * 账号
     */
    @Column()
    private String account;

    /**
     * 登录ip
     */
    @javax.persistence.Column(length = 255)
    private String ip;

    /**
     * 登录地址
     */
    @javax.persistence.Column(length = 255)
    private String ipAddress;

    /**
     * 触发业务
     */
    @Column()
    private String businessType;

    /**
     * 所属模块名称
     */
    @Column()
    private String businessName;
}
